﻿using Newtonsoft.Json;
using SqlSugar;

namespace AnyLink.Domain.Entities.System
{
    /// <summary>
    /// 系统配置
    /// </summary>
    [SugarTable("sys_config", "配置表")]
    //[Tenant("0")]
    public class SysConfig : BaseAuditedEntity<int>
    {
        /// <summary>
        /// 配置id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true,ColumnName ="config_id",ColumnDescription = "配置id")]
        [JsonProperty(propertyName: "configId")]
        public override int Id { get; set; }
        /// <summary>
        /// 参数名称
        /// </summary>
        [SugarColumn(ColumnName = "config_name", ColumnDataType = "VARCHAR(100)", ColumnDescription = "参数名称", IsNullable = true)]
        public string ConfigName { get; set; }

        /// <summary>
        /// 参数键名
        /// </summary>
        [SugarColumn(ColumnName = "config_key", ColumnDataType = "VARCHAR(100)", ColumnDescription = "参数键名", IsNullable = true)]
        public string ConfigKey { get; set; }

        /// <summary>
        /// 参数键值
        /// </summary>
        [SugarColumn(ColumnName = "config_value", ColumnDataType = "VARCHAR(500)", ColumnDescription = "参数键值", IsNullable = true)]
        public string ConfigValue { get; set; }

        /// <summary>
        /// 系统内置（Y是 N否）
        /// </summary>
        [SugarColumn(ColumnName = "config_type", ColumnDescription = "系统内置（Y是 N否）", IsNullable = true)]
        public string ConfigType { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnName = "remark", ColumnDataType = "VARCHAR(500)", ColumnDescription = "备注", IsNullable = true)]
        public string Remark { get; set; }
    }
}
